package com.tgy.serialize;

/**
 * @Author: tgy
 * @Date: 12/8/20 2:53 PM
 */
public interface ISerialize<T> {

    byte[] serialize(T t);

    T deserialize(byte[] data,Class<T> clazz);
}
